package com.dhcc.bpm.modules.api.mapper;

import com.dhcc.bpm.modules.api.entity.Backservice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.common.vo.SelectVo;
import com.dhcc.bpm.modules.api.vo.BackserviceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BackserviceMapper
 * @Description 后端服务表 Mapper 接口
 * @Author daina
 * @Date 2020/2/25 16:02
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface BackserviceMapper extends BaseMapper<Backservice> {

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 15:09 2020/2/25
	 * @param page
	 * @param backservice
	 * @return java.util.List<com.dhcc.bpm.modules.api.vo.BackserviceVO>
	 **/
	List<BackserviceVO> selectBackservicePage(IPage page, BackserviceVO backservice);

	/**
	 * @Description 查询后端服务
	 * @Author daina
	 * @Date 15:09 2020/2/25
	 * @param
	 * @return java.util.List<com.dhcc.bpm.modules.common.vo.SelectVo>
	 **/
	List<SelectVo> selectBackserviceName();

	/**
	 * @Author wangjinghan
	 * @Description 查看详情
	 * @param:
	 * @return:
	 * @date: 2020/4/16 17:42
	 */
	public BackserviceVO getOneDetail(BackserviceVO backserviceVO);


	/**
	 * @Description 自定义分页
	 * @Author
	 * @Date 15:54 2020/2/25
	 * @param backservice
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.api.vo.BackserviceVO>
	 **/
	IPage<BackserviceVO> getPage(IPage<?> page,@Param("backservice") BackserviceVO backservice);

	/**
	 * @Author wangjinghan
	 * @Description 获取详情
	 * @param:
	 * @return:
	 * @date: 2020/4/16 17:40
	 */
	List<BackserviceVO> getByBaseProductId(Long baseProductId);

	/**
	 * @Author xiafayu
	 * @Description 根据基础产品删除后端服务
	 * @param: baseProductId 基础产品id
	 * @return:
	 * @date: 2020/4/16 17:40
	 */
	int deleteByBaseProductId(@Param("baseProductId") Long baseProductId);
}
